package com.qqla.enumeration;

public enum AppHttpCodeEnum {

    // 成功段0
    SUCCESS(200, "操作成功"),
    SQL_ERROR(504, "数据库异常"),
    TOKEN_ERROR(1011, "token 失效"),
    ARGUMENT_ERROR(1001, "传递参数错误"),
    SERVER_ERROR(503, "服务器内部错误"),
    USERNAME_ERROR(1002, "账号错误"),
    PASSWORD_ERROR(1003, "密码错误");

    int code;
    String errorMessage;

    AppHttpCodeEnum(int code, String errorMessage) {
        this.code = code;
        this.errorMessage = errorMessage;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return errorMessage;
    }
}
